export  const DynamicData = (data,callback) =>{
    let curpage=1;
    let pagesize=10;
    let sendData=[];
    let index=0;
    
 
        setInterval(_=>{
        
            for(let i=index;i<(curpage*pagesize)+index&&i<data.length;i++){
                sendData.push(data[i])
            }
            index++
            if(index==data.length-10){
                
                    index=1
            }
            // console.log(sendData)
            // callback(sendData)
            sendData = []
           
            
        },1000)

        console.log(sendData)
   
    
   
    
}



